<?php if($_SESSION['mobile']==1){
 loadview('template/header2_mobile',$data);
}else{?>
<!DOCTYPE HTML>
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#"
	xmlns:fb="https://www.facebook.com/2008/fbml">
<head>
	<BASE href="<?= HOME; ?>" />
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<meta property="fb:app_id" content="" />
	<meta property="fb:admins" content="" />
	<meta name="viewport"
		content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords"	content="<?php echo2($data[keyword]); ?>" />
<meta name="description"	content="<?php  echo $data[mota]; ?>" />
<title><?php echo $data[title]; ?></title>
	<link type="text/css" rel="stylesheet" href="public/bootstrap/css/bootstrap.css" />
    <!-- Them menu css and font-awesome -->
	<link type="text/css" rel="stylesheet" href="public/exts/navbar/source/css/sky-mega-menu.css" />
	<link href="public/font-awesome/css/font-awesome.css" rel="stylesheet" type="text/css" />
    <!-- End menu Css -->
	<link type="text/css" rel="stylesheet" href="public/exts/css/select2.css" />
	<link type="text/css" rel="stylesheet" href="public/exts/css/select2-overwrite.css" />
	<link type="text/css" rel="stylesheet" href="public/exts/css/style.css" />
    <link type="text/css" rel="stylesheet" href="public/exts/css/jRating.jquery.css" />
    <!-- Slider -->
    
    <!-- End slider -->
	<link href="public/exts/preloader/css.css" rel="stylesheet" />
    
    <!-- Van overwrite css -->
    <link  type="text/css" rel="stylesheet"  href="public/exts/css/van.css" />
    <link type="text/css" rel="stylesheet" href="public/exts/css/slider-pro.min.css" />
    <!-- End van overwrite css -->
	<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
	<script type="text/javascript" src="public/exts/js/cookie.js"></script>
	<script type="text/javascript" src="public/exts/js/jquery.scrollUp.min.js"></script>
	<script type="text/javascript" src="public/bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript" src="public/exts/js/select2.min.js"></script>
     <script type="text/javascript" src="public/exts/js/jRating.jquery.js"></script>
     <script type="text/javascript" src="public/exts/js/jquery.center.js"></script>
     
	
     <script type="text/javascript" src="public/exts/preloader/js.js"></script>
    <!-- JS FOR MENU NAVBAR -->
    <script type="text/javascript" src="public/exts/navbar/source/js/jquery.placeholder.min.js"></script>
    <script type="text/javascript" src="public/exts/js/jquery.sliderPro.js"></script>
     <!-- END FOR MENU NAVBAR -->
	<script type="text/javascript">var baseUrl = '<?= HOME; ?>';</script>
	
	<script>
            Royal_Preloader.config({
               mode: 'line',
                background: "#CC181E"
            });</script>
</head>

<body>
	<div id="fb-root"></div>
	<script type="text/javascript">
  // prevent jQuery from appending cache busting string to the end of the FeatureLoader URL 
  var cache = jQuery.ajaxSettings.cache; 
  jQuery.ajaxSettings.cache = true;
  // Load FeatureLoader asynchronously. Once loaded, we execute Facebook init 
  jQuery.getScript('http://connect.facebook.net/vi_VN/all.js', function() {      
    FB.init({appId: '<?php echo FB_ID;?>', status: true, cookie: true, xfbml: true});    
  });
  // just Restore jQuery caching setting
  jQuery.ajaxSettings.cache = cache;
</script>
	<div id="wrapAll">
    <!-- Start Main Nav -->
   	 <div class="wrap_header"> 
		<nav class="navbar navbar-inverse navbar-1 my-navbar" role="navigation">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
            <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
                <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span><span
                    class="icon-bar"></span><span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="http://www.jquery2dotnet.com"><span class="glyphicon glyphicon-home"></span> TCT</a>
        </div>
        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav">
                <li ><a href="#">MANGA</a></li>
                <li><a href="#"><span class="glyphicon glyphicon-calendar"></span> Truyện Chữ</a></li>
                  <li><a href="#"><span class="glyphicon glyphicon-calendar"></span> Video</a></li>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                    class="glyphicon glyphicon-list-alt"></span>Blog<b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="http://www.jquery2dotnet.com">Action</a></li>
                        <li><a href="http://www.jquery2dotnet.com">Another action</a></li>
                        <li><a href="#">Something else here</a></li>
                        <li class="divider"></li>
                        <li><a href="#">Separated link</a></li>
                        <li class="divider"></li>
                        <li><a href="#">One more separated link</a></li>
                    </ul>
                </li>
                 <li ><a href="#">Upload Ảnh</a></li>
                 <li ><a href="#">Hỗ Trợ</a></li>
                 <li ><a href="#">Theo Dõi <b class="caret"></b> </a></li>
               
            </ul>
            <ul class="nav navbar-nav navbar-right">
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                    class="glyphicon glyphicon-comment"></span>Chats <span class="label label-primary">42</span>
                </a>
                    <ul class="dropdown-menu">
                        <li><a href="#"><span class="label label-warning">7:00 AM</span>Hi :)</a></li>
                        <li><a href="#"><span class="label label-warning">8:00 AM</span>How are you?</a></li>
                        <li><a href="#"><span class="label label-warning">9:00 AM</span>What are you doing?</a></li>
                        <li class="divider"></li>
                        <li><a href="#" class="text-center">View All</a></li>
                    </ul>
                </li>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                    class="glyphicon glyphicon-envelope"></span>Inbox <span class="label label-info">32</span>
                </a>
                    <ul class="dropdown-menu">
                        <li><a href="#"><span class="label label-warning">4:00 AM</span>Favourites Snippet</a></li>
                        <li><a href="#"><span class="label label-warning">4:30 AM</span>Email marketing</a></li>
                        <li><a href="#"><span class="label label-warning">5:00 AM</span>Subscriber focused email
                            design</a></li>
                        <li class="divider"></li>
                        <li><a href="#" class="text-center">View All</a></li>
                    </ul>
                </li>
                <?php if(!isset($_SESSION['user'])){ ?>
                <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                    class="glyphicon glyphicon-user"></span>Tài Khoản <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo REGISTER;?>"><span class="glyphicon glyphicon-user"></span> Đăng Ký</a></li>
                        <li><a href="<?php echo LOGIN;?>"><span class="glyphicon glyphicon-cog"></span> Đăng Nhập</a></li>
                       
                    </ul>
                </li>
                <?php }else{?>
                 <li class="dropdown"><a href="#" class="dropdown-toggle" data-toggle="dropdown"><span
                    class="glyphicon glyphicon-user"></span> <?php echo $_SESSION['user']['username'];?> <b class="caret"></b></a>
                    <ul class="dropdown-menu">
                        <li><a href="<?php echo HOME;?>index.php?module=manage&act=home"><span class="glyphicon glyphicon-user"></span> Quản Lý</a></li>
                        
                        <li class="divider"></li>
                        <li><a href="<?php echo LOGOUT;?>"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
                    </ul>
                </li>
                <?php }?>
            </ul>
        </div>
        <!-- /.navbar-collapse -->
    </nav>
    <!-- End Main Nav -->


 	 <div style="max-width:1100px; margin:auto">
    	<a href="<?= HOME; ?>"><img style="width: 100%; height: auto; max-width:403px;" src="public/images/logo-small.png" alt="Truyencuatui.com logo" height="100" /></a>
    </div>
    <div class="clearfix"></div>

	<!-- Start Sub Navbar -->
    
<ul class="sky-mega-menu sky-mega-menu-anim-flip sky-mega-menu-response-to-stack navbar-2">
				<!-- home -->
                  <li class="sub_home_manga">
					<a href="<?php echo HOME?>"><i class="fa fa-home"></i><b style="font-size:16px"> MANGA</b></a>
				</li>
                				<li aria-haspopup="true">
					<a href="#"><i class="fa fa-th"></i> Thể Loại</a>
					<div class="grid-container12">
						<div class="grid-column grid-column2 sub_home_manga">
							<ul>
								<li><a href="<?php echo HOME."truyentranh/status/hot.html" ?>"><b>Truyện HOT</b></a></li>
								<li><a href="<?php echo HOME."truyentranh/status/new.html" ?>"><b>Truyện MỚI</b></a></li>
								<li><a href="<?php echo HOME."truyentranh/status/update.html" ?>"><b>Truyện UPDATE</b></a></li>
                                <li><a href="<?php echo HOME."truyentranh/status/full.html" ?>"><b>Truyện Full</b></a></li>
                                <li><a href="<?php echo HOME."truyentranh/status/ongoing.html" ?>"><b>Ongoing</b></a></li>
                                <li><a href="<?php echo HOME;?>truyentranh/Shounen.html"><b>Shounen</b></a></li>
                                <li><a href="<?php echo HOME;?>truyentranh/Shoujo.html"><b>Con gái</b></a></li>
                                 <li><a href="<?php echo HOME;?>truyentranh/Manhua.html"><b>Trung Quốc</b></a></li>
                                  <li><a href="<?php echo HOME;?>truyentranh/Manhwa.html"><b>Hàn Quốc</b></a></li>
                                   <li><a href="<?php echo HOME;?>truyentranh/School-life.html"><b>Học Đường</b></a></li>
                                   <li><a href="<?php echo HOME;?>truyentranh/Comedy.html"><b>Hài Hước</b></a></li>
							</ul>
						</div>
                        <?php echo manga_render_desktop_theloai(11);?>
						
				
                    </div>  <!--End gridcontainer12 -->                  

				</li>
                <li>
					<a href="<?php echo HOME.'truyentranh/danhsach' ?>"><i class="fa fa-book"></i> Danh Sách</a>
				</li>
                  <li>
					<a href="<?php echo HOME.'truyentranh/capnhat' ?>"><i class="fa fa-refresh"></i>Cập Nhật</a>
				</li>
                 <li>
					<a href="<?php echo HOME.'truyentranh/group' ?>"><i class="fa fa-users"></i> Nhóm Dịch</a>
				</li>
			
				<!-- search form -->
				<li class="right search">					
					<form action="#">					
						<div class="input">
						
							<input type="text" placeholder="Tên Truyện Hoặc Nhóm Dịch" id="menu-search-box2">
						</div>					
					</form>
				</li>
				<!--/ search form -->
			</ul>

    <!--End sub navbar-->
    </div> <!-- End wrap header class --> 	
	

	<div style="height:10px"></div>
 <?php }?>   